<div id="index_left">

		<form name="shopCategoryForm" id="shopCategoryForm" action="<?php echo edp_href_link( PAGENAME_SHOP_SEARCH_RESULT)?>" method="GET">
			<input type="hidden" value="" name="category">
            <input type="hidden" value="" name="q">
		</form>
		
		<form name="shopPaymethodForm" id="shopPaymethodForm" action="<?php echo edp_href_link( PAGENAME_SHOP_SEARCH_RESULT)?>" method="GET">
			<input type="hidden" value="" name="paymethod[]">
            <input type="hidden" value="" name="q">
		</form>
		
		<form name="shopFeatureForm" id="shopFeatureForm" action="<?php echo edp_href_link( PAGENAME_SHOP_SEARCH_RESULT)?>" method="GET">
			<input type="hidden" value="" name="feature[]">
            <input type="hidden" value="" name="q">
		</form>
		
		<form name="shopLocationForm" id="shopLocationForm" action="<?php echo edp_href_link( PAGENAME_SHOP_SEARCH_RESULT)?>" method="GET">
			<input type="hidden" value="" name="location">
            <input type="hidden" value="" name="q">
		</form>
		
		<form name="shopTagForm" id="shopTagForm" action="<?php echo edp_href_link( PAGENAME_SHOP_SEARCH_RESULT)?>" method="GET">
            <input type="hidden" value="" name="q">
		</form>
		
    	<div class="left_sidebar_title">店铺索引</div>
        <div class="index_left_frame">
            <div class="category_title">店铺分类</div>
            <ul class="category_products" id="category_products">
<?php
			$count=1;
			foreach($cateMapping as $key=>$cateList)
			{
?>
                <li>
	                <a href="javascript:void(0);" value="<?php echo $count;?>" class="p1"><?php echo $key;?></a>
					<ul class="menu_1" value="<?php echo $count;?>">
<?php
					foreach($cateList as $key=>$category)
					{
?>
						<li><a value="<?php echo $key;?>" href="#" class="p2"><?php echo $category;?></a></li>
<?php
					} 
?>
					</ul>               
                </li>  
<?php
				$count++;
			} 
?>
            </ul>
            
            
            <div class="category_title">店铺特色</div>
            <ul class="category_pay" id="feature">
<?php
			foreach($featureMapping as $feature) 
			{
?>
                <li><a href="#" value="<?php echo $feature['id'];?>"><?php echo $feature['feature_name'];?></a></li>
<?php
			} 
?>  
            </ul>            
            
             <div class="category_title">口碑排行</div>
            <ul class="category_pay">
                <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=score')?>">口碑最佳</a></li>
                <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=service')?>">服务最佳</a></li>
                <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=reality')?>">商品最真实</a></li>
                <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=rate')?>">性价比最高</a></li>
                <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=velocity')?>">发货速度最快</a></li>                
            </ul>
            
            <div class="category_title">人群排行</div>
            <ul class="category_pay">
                <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=group&detail=girl')?>">MM最爱</a></li>
                <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=group&detail=boy')?>">GG最爱</a></li>
                <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=group&detail=style_star')?>">潮人最爱</a></li>
                <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=group&detail=office_lady')?>">白领女性</a></li>
                <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=group&detail=student')?>">学生最爱</a></li>
                <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=group&detail=shopping_expert')?>">购物达人</a></li>
                 <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=group&detail=business_man')?>">商务人士</a></li>                
            </ul>
            
            <div class="category_title">人气排行</div>
            <ul class="category_pay">
                <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=review_count')?>">人气最旺</a></li>
                <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=review_count-30')?>">本月最旺</a></li>
                <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=review_count-7')?>">本周最旺 </a></li>            
            </ul>
            
             <div class="category_title">最新加入</div>
            <ul class="category_pay">
                <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=create_time-7')?>">本周加入</a></li>
                <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=create_time-30')?>">本月加入</a></li>
                <li><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, 'sortby=create_time-120')?>">最近三个月加入 </a></li>            
            </ul>           
            
            <div class="category_title">付款方式</div>
           	<ul class="category_pay" id="paymethod">
<?php
			foreach($paymethodMapping as $paymethod) 
			{
?>
	             <li><a href="#" value="<?php echo $paymethod['id'];?>"><?php echo $paymethod['method_name'];?></a></li>
<?php
			} 
?>
            </ul>
            

            
            <div class="category_title">发货地</div>
            <ul class="category_city" id="location">
<?php
			foreach($cityMapping as $city)
			{ 
?>
                <li><a href="#" value="<?php echo $city['id'];?>"><?php echo $city['name'];?></a></li>
<?php
			} 
?>
            </ul>
            
            <div class="category_title">热门标签</div>
            <div class="category_tags">
<?php
			foreach($hottagMapping as $hottag)
			{ 
?>
                <span><a href="#" value="<?php echo sconv($hottag);?>"><?php secho($hottag);?></a></span>
<?php
			} 
?>   
            </div>
            

            
            <div class="category_title">热门搜索 </div>
            <div class="category_tags" id="popularSearch">
            <?php if( $popularSearch ) {
            		foreach( $popularSearch as $key => $psearch ){
            ?>
                <span><a href="#" value="<?php echo sconv($psearch['keyword']);?>"><?php secho($psearch['keyword']);?></a></span>
                
            <?php }}?>       
            </div>
         </div>
         <div class="index_left_btm"></div>
         
        <div class="ad_pic">
		<script type="text/javascript"><!--
        google_ad_client = "ca-pub-3131179029997545";
        /* huakaili_rightside */
        google_ad_slot = "4202054412";
        google_ad_width = 200;
        google_ad_height = 200;
        //-->
        </script>
        <script type="text/javascript"
        src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
        </script>
        </div>
    </div>

